/*
 * Copyright (c) 2018, dreamkaylee@foxmail.com All Rights Reserved.
 */

package com.common.shiro.bean;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 在线用户
 * 
 * @author limk
 * @date 2018年2月11日 下午4:41:30
 * @version 1.0
 */
public class UserModel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7275753979781759298L;

	/**
	 * 用户名
	 */
	private Integer userId;
	
	/**
	 * 用户名
	 */
	private String userName;
	
	/**
	 * 角色
	 */
	private List<String> roles;

	/**
	 * 权限
	 */
	private List<Integer> permissions;
	
	/**
	 * 权限
	 */
	private List<String> percodes;

	/**
	 * 登陆IP
	 */
	private String ip;

	/**
	 * 登录时间
	 */
	private Date logontime;

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public List<String> getRoles() {
		return roles;
	}

	public void setRoles(List<String> roles) {
		this.roles = roles;
	}

	public List<Integer> getPermissions() {
		return permissions;
	}

	public void setPermissions(List<Integer> permissions) {
		this.permissions = permissions;
	}

	public List<String> getPercodes() {
		return percodes;
	}

	public void setPercodes(List<String> percodes) {
		this.percodes = percodes;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Date getLogontime() {
		return logontime;
	}

	public void setLogontime(Date logontime) {
		this.logontime = logontime;
	}

}
